package org.NooLab.tikaserver.tcp.agents;

import java.io.Serializable;

import org.NooLab.tikaserver.intf.TikaSrvCmdPkgIntf;




public class TikaSrvCmdPkg 
							implements 
										Serializable,
										TikaSrvCmdPkgIntf{

	
	
	
	private int stop = 0;
	private int restart = 0 ;
	private int ping = 0;

	// ========================================================================
	public TikaSrvCmdPkg(){
		
	}
	// ========================================================================	
	
	@Override
	public void setStop(){
		stop=1;
	}
	
	@Override
	public void setRestart(){
		restart = 1;
	}

	@Override
	public int getStop() {
		return stop;
	}

	@Override
	public void setStop(int stop) {
		this.stop = stop;
	}

	@Override
	public int getRestart() {
		return restart;
	}

	@Override
	public void setRestart(int restart) {
		this.restart = restart;
	}

	@Override
	public void setPing() {
		ping  = 1;
		
	}

	@Override
	public int getPing() {
		
		return ping;
	}
	
	
}
